﻿using System.Reflection;
using UnityEngine;

namespace HDJ.Framework.Core
{
    public class ResourceModuleHandler : AppModuleBase
    {
        [ShowGUIName("资源加载模式")]
        public AssetsLoadType assetsLoadType = AssetsLoadType.Resources;

        public override string GetModuleVersion()
        {
            return "0.0.1";
        }

        public override void OnCreate()
        {
            Debug.Log("资源加载模式:" + assetsLoadType);
            ResourceManager.LoadType = assetsLoadType;
        }

        public override void OnLateUpdate()
        {
            AssetsUnloadHandler.LateUpdate();
        }
    }
}
